package top.wu2020.lazy.ws.chat.application.assembler;

import top.wu2020.lazy.ws.chat.domain.model.community.Community;
import top.wu2020.lazy.ws.chat.application.command.community.CommunityRemoveCommand;
import top.wu2020.lazy.ws.chat.application.command.community.CommunityStoryCommand;
import top.wu2020.lazy.ws.chat.application.command.community.CommunityUpdateCommand;
import top.wu2020.lazy.ws.chat.application.command.community.CommunityQueryListCommand;
import top.wu2020.lazy.ws.chat.application.command.community.CommunityQueryOneCommand;
import top.wu2020.lazy.ws.chat.application.dto.CommunityDTO;
import org.mapstruct.factory.Mappers;
import org.mapstruct.Mapper;
/**
 * describe community 
 *
 * @author Jia wei Wu
 * @date 2024/05/24 08:52 晚上
 * @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyAssembler 
 **/
@Mapper
public interface CommunityDTOAssembler {


    /**
     * describe MapStruct 创建的代理对象
     *
     
     
     
     * @author Jia wei Wu
     * @date 2024/05/24 08:52 晚上
     **/
    CommunityDTOAssembler INSTANCE = Mappers.getMapper(CommunityDTOAssembler.class);
    /**
     * describe 应用层存储入参转换成 领域对象
     *
     * @param communityStoryCommand 保存对象     
     * @return {@link Community} 领域对象     
     
     * @author Jia wei Wu
     * @date 2024/05/24 08:52 晚上
     **/
     Community toCommunity(CommunityStoryCommand communityStoryCommand);
    /**
     * describe 应用层更新入参转换成 领域对象
     *
     * @param communityUpdateCommand 更新对象     
     * @return {@link Community} 领域对象     
     
     * @author Jia wei Wu
     * @date 2024/05/24 08:52 晚上
     **/
     Community toCommunity(CommunityUpdateCommand communityUpdateCommand);
    /**
     * describe 应用层查询入参转换成 领域对象
     *
     * @param communityQueryOneCommand 查询单个对象参数     
     * @return {@link Community} 领域对象     
     
     * @author Jia wei Wu
     * @date 2024/05/24 08:52 晚上
     **/
     Community toCommunity(CommunityQueryOneCommand communityQueryOneCommand);
    /**
     * describe 应用层查询入参转换成 领域对象
     *
     * @param communityQueryListCommand 查询集合对象参数     
     * @return {@link Community} 领域对象     
     
     * @author Jia wei Wu
     * @date 2024/05/24 08:52 晚上
     **/
     Community toCommunity(CommunityQueryListCommand communityQueryListCommand);
    /**
     * describe 应用层删除入参转换成 领域对象
     *
     * @param communityRemoveCommand 删除对象参数     
     * @return {@link Community} 领域对象     
     
     * @author Jia wei Wu
     * @date 2024/05/24 08:52 晚上
     **/
     Community toCommunity(CommunityRemoveCommand communityRemoveCommand);
    /**
     * describe 持久层领域对象转换成DTO对象
     *
     * @param community 领域对象     
     * @return {@link CommunityDTO} DTO对象     
     
     * @author Jia wei Wu
     * @date 2024/05/24 08:52 晚上
     **/
     CommunityDTO fromCommunity(Community community);
}